import { Routes, Route } from "react-router-dom";
import App from "../components/App";
import SignupPage from "../components/signup/SignupPage";
import LoginPage from "../components/login/LoginPage";
import ShopPage from "../components/shop/shopPage";
import RequireAuth from "../utils/requireAuth";

export default (
  <Routes className="container">
    <Route path="/" element={<App />}></Route>
    <Route path="/signup" element={<SignupPage />}></Route>
    <Route path="/login" element={<LoginPage />}></Route>
    <Route path="/shop" element={<RequireAuth child={ShopPage}/>}></Route>
  </Routes>
)
